﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOT4Week1Day1.App.Dtos
{
    public class LoginDto
    {
        [StringLength(30)]
        [Required]
        public string Name { get; set; }

        [StringLength(50)]
        [Required]
        public string Pass { get; set; }

        [Required]
        public string CaptchaKey { get; set; }   //验证码缓存的键值

        [Required]
        public string CaptchaCode { get; set; }  //验证码
    }
}
